home *** CD-ROM | disk | FTP | other *** search
- #define CURSES_LIBRARY 1
- #include <curses.h>
- #undef wrefresh
-
- #ifdef PDCDEBUG
- char *rcsid_wrefresh = "$Header: C:\CURSES\portable\RCS\wrefresh.c 2.1 1993/06/18 20:21:50 MH Rel MH $";
- #endif
-
-
-
-
- /*man-start*********************************************************************
-
- wrefresh() - refresh window
-
- X/Open Description:
- The routine wrefresh copies the named window to the physical
- terminal screen, taking into account what is already there in
- order to optimize cursor movement.
-
- The routine refresh does the same, using stdscr as a default
- screen.
-
- These routines must be called to get any output on the
- terminal, as other routines only manipulate data structures.
-
- Unless leaveok has been enabled, the physical cursor of the
- terminal is left at the location of the window's cursor.
-
- X/Open Return Value:
- The wrefresh() function returns OK on success and ERR on error.
-
- X/Open Errors:
- No errors are defined for this function.
-
- Portability:
- PDCurses int wrefresh( WINDOW* win );
- X/Open Dec '88 int wrefresh( WINDOW* win );
- BSD Curses int wrefresh( WINDOW* win );
- SYS V Curses int wrefresh( WINDOW* win );
-
- **man-end**********************************************************************/
-
- int wrefresh(WINDOW *win)
- {
- #ifdef PDCDEBUG
- if (trace_on) PDC_debug("wrefresh() - called\n");
- #endif
-
- if (win == (WINDOW *)NULL) return( ERR );
- if (win->_flags & _PAD) return( ERR );
-
- if (win == curscr)
- curscr->_clear = TRUE;
- else
- wnoutrefresh(win);
- doupdate();
- return( OK );
- }
-